﻿@model Abhimanu.Mobile.Models.ChangePassword
@{
    ViewBag.Title = "Change Password";
    Layout = "~/Views/Shared/M/_FacultyLayout.cshtml";
}
<a data-role="button" class="no-Ajax"   style="float:left" href="@Url.Action("FacultyProfileHome", "Account")">
    Back</a>
<br />
<br />
@using (Html.BeginForm())
{
    
    <ul data-role="listview" data-inset="true" data-theme="d" data-divider-theme="a">
        <li data-role="list-divider">Update profile info</li>
        <li style="font-size:11px; color:Red;">@Html.ValidationSummary(true, "Please correct the errors and try again.")</li>
        <li>
            @Html.LabelFor(m => m.OldPassword)
            @Html.TextBoxFor(m => m.OldPassword, new {  type = "password", required = "required" })
            @Html.ValidationMessageFor(m => m.OldPassword)
        </li>
        <li>
            @Html.LabelFor(m => m.NewPassword)
            @Html.TextBoxFor(m => m.NewPassword, new {  type = "password", required = "required" })
            @Html.ValidationMessageFor(m => m.NewPassword)
        </li>
         <li>
            @Html.LabelFor(m => m.ConfirmPassword)
            @Html.TextBoxFor(m => m.ConfirmPassword, new {  type = "password", required = "required" })
            @Html.ValidationMessageFor(m => m.ConfirmPassword)
        </li>
    </ul>
           
    <input type="submit" value="Update" data-theme="a" data-form="ui-btn-up-a" />
}
@section scripts
{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}
